<?php
	error_reporting(E_ALL);
	//Start session
	session_start();
	
	//Include database connection script
	include("../include/class.connection.php");
	
	//Check if user is logged in
	if(!@session_is_registered(logged_in))
	{
		header('Location: login/login.php');	
	}
	else 
	{
		header('Location: admin.php');	
	}
?>